/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.kleintjes.employee.Impl;

import za.ac.cput.kleintjes.employee.Employee;

/**
 * @author Administrator
 */

public class FulltimeEmployeeImpl implements Employee{
    
    private String name;
    private int employeeNumber;
    private double monthlySalary;
    private int overtimeHours;
    private static final double OVERTIME_RATE = 25.0;

    public FulltimeEmployeeImpl(String name, int employeeNumber, double monthlySalary, int overtimeHours) {
        this.name = name;
        this.employeeNumber = employeeNumber;
        this.monthlySalary = monthlySalary;
        this.overtimeHours = overtimeHours;
    }

    public FulltimeEmployeeImpl() {
    }

    public int getEmployeeNumber() {
        return employeeNumber;
    }

    public void setEmployeeNumber(int employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public double getMonthlySalary() {
        return monthlySalary;
    }

    public void setMonthlySalary(double monthlySalary) {
        this.monthlySalary = monthlySalary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOvertimeHours() {
        return overtimeHours;
    }

    public void setOvertimeHours(int overtimeHours) {
        this.overtimeHours = overtimeHours;
    }

    public double getOVERTIME_RATE() {
        return OVERTIME_RATE;
    }

    @Override
    public double payment() {
        return getMonthlySalary()+( getOvertimeHours()*OVERTIME_RATE );
    }
    
    
    
}
